FROM alpine:3.8
MAINTAINER chennl chennldev@foxmail.com

# 换为国内镜像，以加速docker image制作速度，非中国镜内用户请注释掉下一行
RUN echo -e http://mirrors.aliyun.com/alpine/v3.8/main > /etc/apk/repositories
RUN echo -e http://mirrors.aliyun.com/alpine/v3.8/community >> /etc/apk/repositories
RUN echo -e http://mirrors.aliyun.com/alpine/edge/testing >> /etc/apk/repositories

RUN apk update && apk upgrade

#时区配置
ENV TIMEZONE Asia/Shanghai
RUN apk add --no-cache tzdata
RUN ln -snf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
RUN echo $TIMEZONE > /etc/timezone

# 容器命令执行
CMD ["sh"]
